package com.fita.admin.service.client;

import com.demo2do.core.entity.exception.BusinessException;
import com.fita.admin.entity.search.client.ClientInterviewRecordSearch;
import com.fita.admin.entity.security.Login;
import com.fita.admin.service.DataService;
import com.fita.entity.client.Client;
import com.fita.entity.client.ClientInterviewRecord;

import java.util.List;

/**
 * @description:
 * @author: 11200
 * @date: 2019/6/21
 */
public interface ClientInterviewRecordService extends DataService<ClientInterviewRecord> {

    /**
     *
     * @param client
     * @return
     */
    List<ClientInterviewRecord> loadByClient(Client client);

    /**
     *  @param clientId
     * @param clientInterviewRecord
     * @param login
     */
    void add(Long clientId, ClientInterviewRecord clientInterviewRecord, Login login);

    /**
     *
     * @param clientInterviewRecordId
     */
    void delete(Long clientInterviewRecordId) throws BusinessException;

    /**
     *
     * @param clientInterviewRecordId
     * @param clientInterviewRecord
     */
    void edit(Long clientInterviewRecordId, ClientInterviewRecord clientInterviewRecord) throws BusinessException;

    /**
     *
     * @param search
     * @return
     */
    List<ClientInterviewRecord> search(ClientInterviewRecordSearch search);
}
